package com.bs.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bingshao
 * @date 2023/4/7
 **/
@Data
@AllArgsConstructor
public class PageUtil<T> implements Serializable {
    private static final long serialVersionUID = -2726546409530648296L;

    private int total;

    private T result;

    public static <T> PageUtil<T> instance(Long count, T result) {
        return new PageUtil(count.intValue(), result);
    }

}
